import { CreateDate, Entity, PrimaryUuid, Date, Digdit, Unique } from '@sker/core'

@Entity({ name: 'wx_statistics' })
@Unique('UK_WX_STATISTICS_DATE',['date'])
export class WxStatistics {
    static title: string = `全局统计`;
    static resource: string = `wx_statistics`;

    @PrimaryUuid({ comment: '编号', primaryKeyConstraintName: "PK_WX_STATISTICS_ID" })
    id!: string;

    @Date({ type: 'date', comment: '日期' })
    date!: Date;

    @Digdit({ comment: '总次数', type: 'integer', width: 11, default: 0 })
    tv!: number;

    @Digdit({ comment: '总页数', type: 'integer', width: 11, default: 0 })
    pv!: number;

    @Digdit({ comment: '总人数', type: 'integer', width: 11, default: 0 })
    uv!: number;

    @Digdit({ comment: '新用户', type: 'integer', width: 11, default: 0 })
    new_user!: number;

    @Digdit({ comment: '统计1', type: 'integer', width: 11, default: 0 })
    v1!: number;

    @Digdit({ comment: '统计2', type: 'integer', width: 11, default: 0 })
    v2!: number;

    @Digdit({ comment: '统计3', type: 'integer', width: 11, default: 0 })
    v3!: number;

    @Digdit({ comment: '统计4', type: 'integer', width: 11, default: 0 })
    v4!: number;

    @Digdit({ comment: '统计5', type: 'integer', width: 11, default: 0 })
    v5!: number;

    @Digdit({ comment: '统计6', type: 'integer', width: 11, default: 0 })
    v6!: number;

    @Digdit({ comment: '统计7', type: 'integer', width: 11, default: 0 })
    v7!: number;

    @Digdit({ comment: '统计8', type: 'integer', width: 11, default: 0 })
    v8!: number;

    @Digdit({ comment: '统计9', type: 'integer', width: 11, default: 0 })
    v9!: number;

    @CreateDate({
        comment: '创建日期'
    })
    create_date!: Date;
}